add: setting minpoly clears variables