tango: constrict the if/else statement