resetting for the training