fixes 1 problem:
matrix dimensions must be registered in the following order:
x dimension i.e. number of cols
y dimension i.e. number of rows