add head and body sections