add and update some function.
add and update some function.
fix some function.