basic polygon matching works