printLeafNodes