added non-overlapping clause to score_edge