use Write method