list head and tail