add leaf analysis