use tanh transfer function