update some function.
update extends parent.