modify doc
rename internal function