refactor rename path to edge