could index be an ndarray?