update in dpnw loop