extraction public function
Merge pull request #1560 from ShengxiangChen/issue_callback

extraction public function