function split sections