changed to if

needed if conditionals instead of switch