add shares functionality