correct section function code