avoid dangling else