add total_sample.pl