update sample to latest version