immutable pointers to return null head at the end of list