simplified definition of num rows and cols