share function added