tweak parameter edges
fix error in procedure M CDG