updated writer with blank value