automatically do all replacements