writer handel null values