updated for slicer4