change the declaration of name member in team structure
improve syntax errors