polygon creation improvement