improve active_record_utility