wrapping nodes in a p tag