removed creation of identity matrix, so just use solve