changed method name in grid_generator for clarity