setRecordsPath function is good