changed title to legend