mixed up pgid_list and pgid_dict