making sure the output is updated for all cells