expose head and tail.