fixed a typo
extracted processing of sections from variable processing
first part is going to be used, so ignore the rest