updated index to print query parameters