updated writer