updated braces in the control structure