time update and sequence modeling