getHead

getHead function added