changed if to switch. trying to prefer that with enums