modularized get_results