make leaf small
refactoring