index_by_id works