added 2d grid n