edited vertex code so program runs