have trilinear interpolation working and integrated