updated _x second param to take itemtype