rewrite add