saving before modifying degree calculation
bug free minimum degree