added 3d, made spectral