clean the code for relative intensities