implementing vertex winder script