share reduction script