changing res.size() for drift definition search results to delete on results greater than 0