makeEdgeRec corrected