added search funtion