passed update loop to cell update