creating query string from parameters