modify last heading