step2: init degree updating hook function