created matrices, added col/row constants