added functionality for 3 levels of intensities