set up control structure