COOK-3250 add minsize as a parameter