added error calc to Backpropagate