inline maybe_polyd()