subs pattern fix