returning results by frequency