did you, by any chance, mean to make this `if f.length() == 2 or f.degree() == 2:`?