truncate before overwritten