move from a typedef array for vertex, to a struct. and it works still :)