data sampling & processing