trying to implement team checking functionality