simplify variable naming in showResultDetail