whin n == 0, need to declare a NULL node and push_back