updating time code