added methods for initialising the grid