modify some function.