fixed some sloppy code in problem_102