work on a substitution lemma