added real pivot calcul