sample: improve sample