dirty code, analyse matrix conditioning