fix bug and try to see the write function execution result