simple pattern approach