use np.dot instead of array.dot