add minsize in checkConditions