row and col values are reversed