updated functions

updated traincom and schedule