time update and efficient input