match different types of degrees