added function has_modular_unit_of_degree