changed to types and grids template