improved legend positioning
updates