added add functionality to search