removed leaves print statement