control flow ideas