removes redundant information in dep_list