moving sample_method