added nms for edges