added backprop responding to number of epochs passed in