removes duplicate points when adding and moving