added intensity setter
fixed intensities reading