indexation changed to np.matrix compatible style