Improved method for getting shares and the principals associated with the share