head search

head search fuction