update instead of w