how do you do substitution