finds edges