added team functionality