changed to record.name not .id