making gauss_elimination workable