handling for edges.