adding erroring and truncate to write