value grad for tanh working