changed vertex to be arrays instead of hand typed