updated grid.py usage