Moved update to each row