until the output shaft stops rotating