some condensing, working on poly_div variations