Modify function of share