eps is now a 1d array