function for team 4