thinning out data