variational returns now the right raveled indices