implemented Floating through tanh