refactoring enlargeMaxStaged