update position of time