make sure node->next is initialized to NULL