while sample