adjust legend