modify write function name