changed 0K grid pointers to integers