pattern matching name