added deleted function lockTeams