write everything