RR -> rowsPerPage
gave RR variable more appropriate name and made it camel case