simplify actions and for loops.