add names to team and ref inputs