testing train func