solving problem of responseHandler