add random substitution