update the clock