better matching of itemtypes