optimize example

optimize example