switched if/else statement

switched if/else statement