stacksize has to be altered outside the check