what happens in the other cases a.ndim=1?