modify BasicSample.