remove some needs_update tag and update related code.