adding a couple of lemmas to help subst