added approximate pattern matching ex