some changes to problem 34