worked on edge removal heuristic