getting response back to the client