trying to fix condition number problem