結果 : path function and state function difference