making n_eqs a params field (was a template paprameter)