update the final