improve optimizing tutorial