made method getAllRecordsOfPage constant