removed dead code
removed dead code
updated leaf compare to new api