compared the pattern