add pattern matching for candidate extraction