changed to np.array