Improve the grammar in the text:
When we went on a school excursion trip to Kyoto in junior high school, we got on the train.
When we went on a school excursion trip to Kyoto in junior high school, we took the train.