change list to set to avoid duplicate ids