add tudou, and use an array to store patterns
ku6 added