fixed problem #48 part 2