search function code
new