added routine for generating lists matched to keywords