remove extra print statement in tree walker