polygon drawing works