change lut calculation