optimised the mapping of values in the input channels