better legend positioning