method for solve A x = b changed