setting Sample