結果 : differentiate between input and output function