refactored responses to create one response with a generic