added team fucntionality