added tanh layer