correct backpropigation calculations