update cells based on output2