minor changes to legend positioning
merge changes