update optimizing