traversing the tree complete. Keeping format of P tags.