refactore code to avoid needless attributes for the request body