final version, still a bug in which latter search terms have fewer matches