[Refactor] remove define _return(ret)
[Refactor] add modifier 'static' to all the internal function