complete matches section... lots more code than I probably liked, but it looks nice and it's easy to understand and definitely works well\!