set list's head to NULL in the constructor