replaced switch statement with if else

android made me do it