adds sections on loops