refactor show result method