modify some function name and structs's contruct fucntion