remove type from spec and only use dimension