Compose substitutions