type and grid