manual mode and auto mode