made grid a numpy array