finished polynomial stuff