modified edgeProcess