moved rows, cols to base class