remove sample function