Use contents to properly build nodes.