checking timing in the train