add search fuction