templating on the Vertex
remove cout and fix dicts