got tanh working