updated to getRow and getCol