rewrite replaceability