almost done with substitution lemma