updated variable name in problem 24