update the intensities