setting up the base for search to work