getAllPatterns in progress