minor code reformat in examples