raw and sampleing