still working on generalizing search queries