changed switch to if else