added search function
edits