create vtk files in separate loop