debuggin matrices