modify some function in data tools