adding WRITE_TRUNCATE