train code!
some small changes