added comment to leaf.java