change grids to new prefixes