grid-maker initialization