finished filtering and searching