actually write response