write external changes