add function of sharing