added hyperbolic tangent function