use type and items instead