set the head in list to null on init