problem 2 with errors