polygon now uses pairs -_-