handle response method
updated response