add in polynomial correction option