fixes row and column problem, uses x and y and had to transpose rows and columns, removes block row and column vars cause they are extraneous