adjusted legend to remove boxing