eta is now a 1d array.