added pattern matching
added links