fixed np.array issues