rewrite data