added an else to the if/else statement