fixed train script ^2