delete function for searching performance