removes redundant planets