change bind_records logic