write out response