polygon matches working