changed any to void for checkResponse()