add begin and end section