method to return records