write old contents