all_cs_results function wrote