add missing else statement