generation inner switch from children