parses id_list correctly