updated switch comment on root index