added input range for max intensity
added input range for max intensity