gets rid of polygon weirdness