added sharing functionality