pattern recognition view 2