only generate teams when needed