remove dup writerheader