added sample functionality