changed string switch cases to if statements