erased working properly with polygons