wrote encoding