add new method to get pivot