update output when optimized is changed