solution is more complex than needed. You don't need the outer if/else statements