use sample_period