added shared data for encoder 1 and 2