changed a call to the record function to a call to the record_group function