correct grid NS indexing