substituting

verbThe act of using or putting someone or something in place of another.
nounThe action or process of replacing one thing with another.