add subst method