add nested control flow