adapted constants for switch table generation