結果 : temp switch function