set up query string