modify zwrite