update clock