update some samples.code review