change log to write