initial sample and setup code