changed first callback parameter to request.response rather than request. added request as a second parameter