The switch of gauss values works in 2D, but still not 3D