fixed moving polygons, debugging