modified test.pl