adding treatment of single value gains and offsets, now propagating over whole data block