more if convert to switch