change polygon drawing to pay attention to ds