get the control structure correct