add search funtion