addes sample to param; changed example to sample