Everything works

except singular matrix, please fix