modify update loop to incremental update since it definitely will finish everything in one pass