#121 update grid generator

Fixes #121