pattern | main