The Bureau of Customs and Border Protection (CBP) department performs customs and border control functions; the Bureau of Immigration and Customs Enforcement (BICE) - investigation of violations of immigration legislation, ensuring deportation of illegal immigrants and investigation of customs crimes; the third department - the Bureau of Citizenship and Immigration Services (BCIS) - handles processing of applications for citizenship, residence permits, refugee status, changing the status of foreigners in the USA, etc.