method name changed to create_response