main changes for replacements