update content and format