cleanup of search