removed redundant replacements