adjusting horizontal speed