minp and maxp isnt used…