added rev_legend