grid graph small is dynamically initialized now