before vertex shuffling