added loop control in loops section