pattern rebase