snapping points to edges added