an attempt to solve empty response error