update add control flow