optimize examples

optimize examples