transposed and calculated difference
data arranged