changed intensity to brightness
changed granularity