add function of SampleAction