checkResponse was being called wrong