add the sample mode