sharing function added