changed the pulling of the targetIDs