add search and head