substitutions can be applied to terms