update train script