Fixed variable names leftover from previous iteration of method