sample functions change