get gauss kernel working properly