changed the shape of the vertex, added boxes for the later endpoints