migrate sample to new version