cleanup double polynomial model