simplepatternmatch