updated example and fix bug"