made compatible with vtk6