nit: please use `else if` or a switch.