updated replaceContent