updated info_rank to handle flexible labeling