remove duplicate degree