removed extra comments in train method