improved explanation of switch compilation