poly_div works