remove some comments and print leaf value