refactoring pivot
refactoring pivot