added sharing functions