small changes to procedure for grid
small changes to procedure for grid
merging with mac