added needed else statement