making dataset into numpy array