remove global from item spec and added type