functional code for team