append legend