xhare funcrtion