correct number of rows/columns