fixed 10 minute sampling script