working on the response handler