rename function from isSecure to isModeSecure