update polynomial pow