switch and constants