better example script
fix bug