clone object response before sending