habit pattern substitution