add all function and security sub district