taking a sample and using that instead