updated ranking and created generate_ranking for crom job