changes the way to send responses.