apply backpropagate
added backpropagate
fix weight update