changing from url path parameters to query string parameters