Make all nodes pointers