added rewrite example