refactoring code to get fq for suggestions, efficiency