change sample function signature