make rows/cols instance methods instead of class methods