generic pattern fix