replaced NSENSOR with NCHANNELS