add team relation funciotns