modified scripts
corrected problem 3