update calculating nulls