corrected getCol and getRow