added sample functions