implemented clipping for exploding multinomial activations