add function
Merge pull request #21 from cnnic/master

update local code