needed for the search function to work