refactoring leaf shape