removed while loop, working on improving match rate
fixed templates
scan works in page