edit for  error in polygon drawing