format code style
fixed a function call err
modify function called
enhancement
related issue: #9