figuring out which samples to include