missing `} else { ... }` here?