legends reformatting