added pattern property for obtaining kmatch pattern