input for training is a pointer now