working on sampling