search and remove functionality completed