update sharing function