switch over name and example