implementation XHItem logic