reverted response.py to be functional