preventing extra call when rrecords are less than the max records to get