set degree & directino implementation