reverse and uniq