corrected problem 1