getting response from server