attempted to finalize update function