first test for itemtype