changed legend positioning