modified service function so it can output the correct data format that matching record.model.