updated sample to reflect recent changes