re-config the degree part

re-config the degree part to suit the different requires.