use sigmoid function instead of tanh