modify train