avoid any switches, better performance