change directory total_sample.pl