playing around with template matching