refactored team code for polling
added user_id for class usage