time update and coding