update

complete some function.