add 4 default patterns and find the main pattern