結果 : what is a path function vs state function