udpate speed and time