add sharing function