finished teamheading function