can now print any number of rows between 2 and 12