working on 'gather' version of computeCells