Simplify replacing