refactoring Edges->Edge