modif to work with VTK6.0