calls receiveResponse