search and delete working