added weight correction on output layer