add search fucntion