response rewriteg