changed split_team function to format_team