add if stat for when data length is 1 in showResult