made node_ptr public so it can be used to iterate over list