added tanh