changing to map to iterate of vm's