using variables for search terms