code final update