update and optimization recorder