improve election in table