added time speed control