REF: use .get(i) to select the active child in a switch