use max value of channel instead of average