changing pattern matching