added a missing "else"