branching

Using different actions for different cases.