improving pivoting