add get teams function. I rewrite it later:)