add refresh to the doc of optimizing