grid generator works