adding some share functions