switch types for global constants