fixed typo in samplecode