slight simplification for command list iteration