Project PR

since there's only one condition to check, please change to switch statement po :bow: