put minpoly in code format