updating time.