Change Gauss's methos