add validation for samples