put detected_edges in their place