now write everything