added support for large leaves