fixed nested pivot