added java7 switch