part way through subset_eq optimization