using replace_inner instead