problem 49 minor changes