$ 0 0 replace result.addValue(input1) with result.addValue(input1[0])and result.addValue(input2) with result.addValue(input2[0])