changing to id_dict