only take 1024 samples