adding auto mode