minor refactoring for GET request parameters