pattern recognition view 1