gets scaling and polygons to finally work