How to solve NaN error, while dealing with multiplication of double values

i am getting NaN error in the program.
consider this following code
for (j=0;j<nh;j++)
sum = 0.0;
for (i=0;i<ni;i++){ sum = sum + (ai[i] * wi[i][j]) ;}
//System.out.println(sum);
ah[j] = sigmoid(sum);
public static float sigmoid(float x)
return ((Math.exp(x)- Math.exp(-x)) / (Math.exp(x)+Math.exp(-x)));
ni = 2500-- no of input nodes;
nh = 5000 -- no of hidden nodes;
i am getting problem in calculating the "sum" value. its returning NaN for "sum".
here a[i] values are around some +/- 0.XXXXXXXX upto 14 digits
and wi[j][j] values are also +/- 0.XXXXXX upto 14 digits.
all values are of datatype double.
i was stucked up with this problem. what i am to do?
give me suggestions..
please reply me

This can occur with double divisions. I wrote a small method that solves this:
     * Set double values that have a value of 'NaN' or 'Infinity' to 0.0. This can happen when dividing double values as they
     * don't cause a DivisionByZeroException.
     * @param value Double value to check.
     * @return Input value with 'NaN' and 'Infinity' set to 0.0.
    static public double resetNaN(final double value, final double resetValue) {
        return (Double.isNaN(value) || Double.isInfinite(value)) ? resetValue : value;
    }//resetNaN()

Similar Messages

  • How to solve the error while  Deploy a BC4J JSP Application using tomcat,

    hello,
    how to avoid the following error?
    i am using jdevloper for devloping jsp applications.
    after that i am calling the jsp page using tomcat4.0 ,i followed the steps according docs by jdev team,
    i am getting the following error how to solve this,
    can one help?
    =============================
    type Exception report
    message Internal Server Error
    description The server encountered an internal error (Internal Server Error) that prevented it from fulfilling this request.
    exception
    org.apache.jasper.compiler.CompileException: /AccountView_Browse.jsp(4,0) Unable to load class oracle.jbo.html.jsp.datatags.ApplicationModuleTag
    at org.apache.jasper.compiler.TagBeginGenerator.init(TagBeginGenerator.java:139)
    at org.apache.jasper.compiler.JspParseEventListener$GeneratorWrapper.init(JspParseEventListener.java:829)
    at org.apache.jasper.compiler.JspParseEventListener.addGenerator(JspParseEventListener.java:153)
    at org.apache.jasper.compiler.JspParseEventListener.handleTagBegin(JspParseEventListener.java:1039)
    at org.apache.jasper.compiler.DelegatingListener.handleTagBegin(DelegatingListener.java:221)
    at org.apache.jasper.compiler.DelegatingListener.handleTagBegin(DelegatingListener.java:216)
    at org.apache.jasper.compiler.Parser$Tag.accept(Parser.java:852)
    at org.apache.jasper.compiler.Parser.parse(Parser.java:1145)
    at org.apache.jasper.compiler.Parser.parse(Parser.java:1103)
    at org.apache.jasper.compiler.Parser.parse(Parser.java:1099)
    at org.apache.jasper.compiler.ParserController.parse(ParserController.java:214)
    at org.apache.jasper.compiler.Compiler.compile(Compiler.java:210)
    at org.apache.jasper.servlet.JspServlet.loadJSP(JspServlet.java:548)
    at org.apache.jasper.servlet.JspServlet$JspServletWrapper.loadIfNecessary(JspServlet.java:176)
    at org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServlet.java:188)
    at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:381)
    at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:473)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:247)
    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193)
    at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:243)
    at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
    at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
    at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
    at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:190)
    at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
    at org.apache.catalina.valves.CertificatesValve.invoke(CertificatesValve.java:246)
    at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
    at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
    at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
    at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2347)
    at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180)
    at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
    at org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:170)
    at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
    at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:170)
    at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
    at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:468)
    at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
    at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
    at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
    at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:174)
    at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
    at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
    at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
    at org.apache.catalina.connector.http.HttpProcessor.process(HttpProcessor.java:1027)
    at org.apache.catalina.connector.http.HttpProcessor.run(HttpProcessor.java:1125)
    at java.lang.Thread.run(Thread.java:536)
    ====================
    thanks
    pullareddy

    I had very similar problems with adding the correct JDeveloper .jar files to Tomcat's lib folder, but did eventually resolve my issues.
    The problem I am having now, however, is the following error message:
    Error Message: oracle.jbo.html.RequestParameters.addParameter(Ljava/lang/String;Ljava/lang/String;)V
    Yes, I have deployed the bc4jhtml.jar file from JDeveloper to Tomcat\common\lib!
    My web-app is a very simple BC4J JSP application. I have one BC4J component in its own project and JAR file, and one JSP referencing that BC4J component - I deploy the BC4J JAR along with the WAR file from the JSP project. Needless to say, the JSP works fine within JDeveloper..!
    I'm using JDev 9.0.3 and Tomcat 4.1.12. Does anyone have any suggestions?
    Thanks,
    S.

  • Limit errors while working with multiple connections

    I'm currently evaluating SQL Developer and I'm looking particularly for functionnalities that permit to distinct clearly several connections, so as to avoid DBA errors when working with several connections in parallel.
    Currently it seems that SQL Developer provide these features :
    - folders organization in the explorer --> for example we can create one folder per environnement (DEV, ...).
    - connection name --> each user can define its own name. These aliases are then shown in main window title and tabs when opening a connection.
    These features ar quite limited when comparing with a tool like Toad, which permit to associate colors to connections (good feature!) or define custom fields. Moreover database user is not shown into the SQL Developer interface, unless we add it into the connection name...
    Do you know if it is planned to improve these features in following SQL developer releases ?
    Or,if not, would it be possible to develop rapidly a plugin that can provide it? (especially concerning connections colors)
    Thanks.

    OK I found a feature request that exactly corresponds to mine : [http://htmldb.oracle.com/pls/otn/f?p=42626:39:8190796679950913::NO::P39_ID:3881]
    But this request is 2 years old and was apparently rejected. Can I submit again a similar request?
    And do you know if it would be possible to add this feature by developing a custom plug-in?
    I mean: do SQL Developer plug-in extension mechanism allow us to extend the "connection preferences" wizard, and GUI?
    Thanks

  • Dealing with exponents for double values...

    Hi all,
    I've been putzing around with the NumberFormat class, as well as the Double api, but I can't seem to find a solution on how to remove exponents from double values.
    For example:
    double x = Double.MIN_VALUE;
    Might return 4.9E-123
    How do I remove the E, or any of those special characters, and just retrieve the exact, unshortened value?

    For example:
    double x = Double.MIN_VALUE;
    Might return 4.9E-123It doesn't return 4.9E-123. It returns a double. If you print it out it will look like that.

  • How to solve An error was encountered while syncing ZERO while syncing blackberry with mac

    how to solve An error was encountered while syncing ZERO while syncing blackberry with mac

    I've got this problem too - is there a fix?

  • How can we handle browser settings while dealing with the security ?

    Hi ,
    how can we handle browser settings while dealing with the security ?When we configured security in web.xml , during the first request the container is asking for the authentication credentials once they are provided it go's on. but when the user gives a fresh request from the second window within the same browser that time it is not asking for authentication. How can we overcome this.Is there anything to do with server configurations?
    How can we make the container no to keep the things or act like session?

    Ya... I am taking a small example need not happen always but a kind of possibility i am thinking off.
    once the user sign out and just left without closing the browser and a friend (suppose not a good friend ... just kidding...) of that user may open the same jsp or file .This time the security is breached. If that feature or property exists....
    I know what you might say ... the user will log-out before leaving where a programer might invalidate the session at the time of log out.
    Consider the case of a bad Programing or just a programer might forget to invalidate,At that time as a application administrator how can he solve that issue.
    Thanks.......
    Edited by: user8483670 on Jun 6, 2011 1:08 AM
    Edited by: user8483670 on Jun 6, 2011 1:09 AM

  • How to solve the error "The specified resource is reserved" when running with DAQmx And LabVIEW?

    How to solve the error "The specified resource is reserved" when running with DAQmx And LabVIEW?

    I hate "J term"
    OK I love the learning the students get.   And, I like helping them out!  But, as a former man who's got the varicose viens to prove he's spent time "behind the podium" (yeah, "behind the podium" puts 'em to sleep- songs and dances for the young'uns) come on! USE the tools you teach!
    Instructors invited to engage in the forums
    Jeff

  • How to solve the error 'please enter account assignment ' in BAPI_PO_CREATE.

    Hi gurus,
    While creating shopping cart with an  item from services type  i am getting error please enter account assignment.Please suggest me how to solve this error
    thanks&regards,
    Suneel Kumar.

    Hi Suneel,
    Are you getting while transferring the Shopping cart into ECC? Or you are getting while creating Shopping cart in SRM?
    Thank you
    Ritesh

  • TS3694 how to solve 1015 error message

    how to solve 1015 error messege

    Error 1015: This error is typically caused by attempts to downgrade the iPhone, iPad, or iPod touch's software. This can occur when you attempt to restore using an older .ipsw file. Downgrading to a previous version is not supported. To resolve this issue, attempt to restore with the latest iPhone, iPad, or iPod touch software available from Apple. This error can also occur when an unauthorized modification of the iOS has occurred and you are now trying to restore to an authorized, default state.
    Pull up itunes on a computer and plug the iPad cord into the USB but the the device, hold the "Sleep/Wake" button and the "Home" button at the same time and count to 8.  then let go the Sleep/Wake button BUT KEEP YOUR FINGER ON THE HOME BUTTON. while holding the home button connect the device to the cable thats plugged into the computer and keep holding the home button
    AT NO TIME SHOULD YOU LET GO OF THAT HOME BUTTON until you see the message pop up in itunes saying "iTunes has discovered your iPad in recovery mode" then just go through the screens to restore the device.
    if that message doesn't pop up after about 20 seconds, then call apple care, let them know you tried to perform the DFU mode restore (Deivce Firmware Update) and it was a no go. and ask them if you're in warranty to replace it for free.

  • HT201210 how to solve the problem while re storing iphone 3gs. unknon erron occured(29)

    How to solve the problem while restoring iphone 3gs? (unknon error occured (29)

    Hello Musthafa K.O.M,
    Thank you for using Apple Support Communities.
    For more information, take a look at:
    Resolve specific iTunes update and restore errors
    http://support.apple.com/kb/ts3694#47
    Check for hardware issues
    Try to restore your iOS device two more times while connected with a cable, computer, and network you know are good. Also, confirm your security software and settings are allowing communication between your device and update servers. If you still see the alert when you update or restore, contact Apple support.
    Common errors: 1, 10-47, 1002, 1011, 1012, 1014, 1000-1020.
    Have a nice day,
    Mario

  • How to solve the Error in Action for illustrator cs3

    Through action in illustrator cs3 i changed the document mode RGB to CMYK via Visual Basic. But sometimes it throws 2 different kinds of error messages.
    CODE:
    appRef.DoScript "Change", "Convert"
    While (appRef.ActionIsRunning)
    WScript.sleep 1000
    Wend
    Error 1:
    Could not complete the Play Command because the action is playing.
    Error 2:
    The Object "Document Color Mode: CMYK Color" is not currently available.
    Could you please explain how to solve this error.

    The input data provided as the first argument to ore.tableApply and rqTableEval are physically being moved from Oracle Database to the database server R engine, and then serially operating on the entire table  The benefit to using ore.tableApply/rqTableEval in this case is the potentially greater amount of RAM on the database server.  But it's important to note that R’s memory limitations still apply in this case.
    You may have already seen the blog post on Managing Memory Limits and Configuring Exadata for Embedded R Execution where we discuss setting memory limits for the database server R engine. These suggestions can be used to load reasonably sized data tables, and you may still encounter limitations when using a very large table.
    In contrast to the "table apply" functions, the "group Eval" and "row eval (" functions are parallel-enabled embedded R execution functions. They support data-parallel execution, where one or more R engines perform the same R function, or task, on different partitions of data. The following training and blog links should be helpful in choosing the correct function for your use case:
    http://www.oracle.com/technetwork/database/database-technologies/r/r-enterprise/learnmore/ore-1-4-embedded-r-execution-s…
    http://blogs.oracle.com/R/entry/invoking_r_scripts_via_oracle1
    http://blogs.oracle.com/R/entry/invoking_r_scripts_via_oracle2
    http://blogs.oracle.com/R/entry/invoking_r_scripts_via_oracle3
    http://blogs.oracle.com/R/entry/invoking_r_scripts_via_oracle4
    http://blogs.oracle.com/R/entry/invoking_r_scripts_via_oracle5
    Sherry

  • How to solve the error 0xBFF6902B in Ni-Max??

    Hello,
    I am trying to communicate with Axis camera with Ni-vision , but I am getting the error as I mentioned.
    Here in attachment I have attached the screenshot of error.
    Would you please guide me how to solve this error.
    Thank you very much.
    Attachments:
    error.png ‏982 KB

    Hello,
    I have a camera in My robot its Axis camera and its working fine in when I connect my robot and handle with labview.
    But I am not able to detect that camera in Ni-Max as I want to develop some functionality of robot camera in Ni-IMQ.
    When I tried to connect then I Got the error Error - 1074360277 occurred at IMAQdx Open Camera.vi,
    would you please help me how to solve this problem.
    Ip address of camera also responding well.
    Please guide me what should be the possible way to solve this problem I am using labview 2012.
    Attachments:
    erro.png ‏231 KB

  • How to solve this error using OSX Server's bots

    Plz help me.
    My remote repository is SVN version controll system.
    when I started integration using bot in OSX Server. this error was pisplayed on a log.
    how to solve this error to integrate my project using OSX Server.
    Apr  3 16:56:42 server.mbkwon.com xcsbuildd[20259] <Debug>: [XCSBuildBundle.m:466 77537310 +61ms] Will NOT send email notifications because notifyCommitterOnFailure is NO Apr  3 16:56:42 server.mbkwon.com xcsbuildd[20259] <Debug>: [XCSBuildBundle.m:470 77537310 +0ms] Posting email notification for bot run with type com.apple.notifications.BotFailed Apr  3 16:56:42 server.mbkwon.com xcsbuildd[20259] <Debug>: [XCSBuildBundle.m:471 77537310 +0ms] Sending email to committers = (null) Apr  3 16:56:42 server.mbkwon.com xcsbuildd[20259] <Debug>: [XCSBuildBundle.m:1033 77537310 +0ms] Posting notification of type com.apple.notifications.BotFailed Apr  3 16:56:42 server.mbkwon.com xcsbuildd[20259] <Debug>: [XCSBuildHelper.m:199 77537310 +0ms] Posting notification for bot run GUID f87f0098-f8ca-4bfa-945e-cbb11a2f6abb of type com.apple.notifications.BotFailed Apr  3 16:56:42 server.mbkwon.com xcsbuildd[20259] <Info>: [CSRemoteServiceClient.m:151 77537310 +0ms] Connecting to https://localhost:4443/svc to execute [https]Request{AuthService.enterMagicalAuthRealm()} Apr  3 16:56:42 server.mbkwon.com xcsbuildd[20259] <Info>: [CSRemoteServiceClient.m:151 77537310 +45ms] Connecting to https://localhost:4443/svc to execute [https]Request{XCBotService.postNotificationForBotGUID:andRunGUID:andNotificati onType:additionalEmails:(c6189ca0-0649-0649-c01e-81c4d0b52dd9,f87f0098-f8ca-4bfa -945e-cbb11a2f6abb,com.apple.notifications.BotFailed,( ))} Apr  3 16:56:42 server.mbkwon.com xcsbuildd[20259] <Debug>: [XCSBuildBundle.m:601 77537310 +84ms] Deleting work queue item: cf7fe6b8-4df8-b723-4794-50fbf27955ed Apr  3 16:56:42 server.mbkwon.com xcsbuildd[20259] <Info>: [CSRemoteServiceClient.m:151 77537310 +0ms] Connecting to https://localhost:4443/svc to execute [https]Request{XCWorkQueueService.deleteWorkQueueItemWithGUID:(cf7fe6b8-4df8-b7 23-4794-50fbf27955ed)} Apr  3 16:56:42 server.mbkwon.com xcsbuildd[20259] <Debug>: [XCSBuildBundle.m:929 77537310 +13ms] Marking build bundle complete with status failed and sub-status internal-checkout-error Apr  3 16:56:42 server.mbkwon.com xcsbuildd[20259] <Info>: [CSRemoteServiceClient.m:151 77537310 +0ms] Connecting to https://localhost:4443/svc to execute [https]Request{AuthService.enterMagicalAuthRealm()} Apr  3 16:56:42 server.mbkwon.com xcsbuildd[20259] <Debug>: [XCSBuildHelper.m:97 77537310 +55ms] Updating bot run with GUID f87f0098-f8ca-4bfa-945e-cbb11a2f6abb Apr  3 16:56:42 server.mbkwon.com xcsbuildd[20259] <Debug>: [XCSBuildHelper.m:102 77537310 +0ms] Updating bot run (f87f0098-f8ca-4bfa-945e-cbb11a2f6abb): { guid = "f87f0098-f8ca-4bfa-945e-cbb11a2f6abb"; status = failed; subStatus = "internal-checkout-error"; } Apr  3 16:56:42 server.mbkwon.com xcsbuildd[20259] <Info>: [CSRemoteServiceClient.m:151 77537310 +0ms] Connecting to https://localhost:4443/svc to execute [https]Request{XCBotService.updateBotRun:({ guid = "f87f0098-f8ca-4bfa-945e-cbb11a2f6abb"; status = failed; subStatus = "internal-checkout-error"; })} Apr  3 16:56:42 server.mbkwon.com xcsbuildd[20259] <Debug>: [XCSBuildHelper.m:108 77537310 +121ms] Updating bot with GUID c6189ca0-0649-0649-c01e-81c4d0b52dd9 Apr  3 16:56:42 server.mbkwon.com xcsbuildd[20259] <Debug>: [XCSBuildHelper.m:117 77537310 +0ms] Updating bot with latest bot run GUID key Apr  3 16:56:42 server.mbkwon.com xcsbuildd[20259] <Debug>: [XCSBuildHelper.m:124 77537310 +0ms] Updating bot (c6189ca0-0649-0649-c01e-81c4d0b52dd9): { guid = "c6189ca0-0649-0649-c01e-81c4d0b52dd9"; latestFailedBotRunGUID = "f87f0098-f8ca-4bfa-945e-cbb11a2f6abb"; latestRunStatus = failed; latestRunSubStatus = "internal-checkout-error"; } Apr  3 16:56:42 server.mbkwon.com xcsbuildd[20259] <Info>: [CSRemoteServiceClient.m:151 77537310 +0ms] Connecting to https://localhost:4443/svc to execute [https]Request{XCBotService.updateBot:({ guid = "c6189ca0-0649-0649-c01e-81c4d0b52dd9"; latestFailedBotRunGUID = "f87f0098-f8ca-4bfa-945e-cbb11a2f6abb"; latestRunStatus = failed; latestRunSubStatus = "internal-checkout-error"; })}

    Hello,
    You need to make sure both names match exactly

  • Ajax submit failed: error = 403, forbidden----how can solve this error

    Ajax submit failed: error = 403, Forbidden--how can solve this error to create a new eprintcenter account

    I am having the SAME problem.  This is so frustrating.   If i try to log on with teh user account I already have, I get the above message.  If i try to create a new accoutn it says the account is already existing.  If i click on forgot password, nnothing happens.  HELP!  I am stuck in a loop!!

  • How to solve this error java.util.MissingResourceException

    Hi Friends,
    I had developed one web dynpro application by using  Internationalization - I18N of WebDynPro (Java)  Application (Blog)   but I got one error that is
    <b>java.util.MissingResourceException: Can't find bundle for base name com.sap.example.language.lang, locale en_US</b> 
    Actually i created two properties file
    1. lang_en.properties
    2. lang_ta.properties
    I stored this two properties file in this package com.sap.example.language
    and this my code in DOInit()
    sessionLocale =  WDClientUser.getCurrentUser().getLocale();
    resourceHandler = ResourceBundle.getBundle("com.sap.example.language.lang",sessionLocale);
         catch (WDUMException e)
         e.printStackTrace();
         wdContext.currentContextElement().setUsername_label(resourceHandler.getString("testview.username"));
         wdContext.currentContextElement().setPassword_label(resourceHandler.getString("testview.password"));
    How to solve this error?
    Guide me.
    Advance Thanks,
    Balaji

    Hi Friends,
    I had developed one web dynpro application by using Internationalization - I18N of WebDynPro -Java Application (Blog) but I got one error that is
    <b>java.util.MissingResourceException: Can't find bundle for base name com.sap.example.language.lang, locale en_US</b>
    Actually i created two properties file
    1. lang_en.properties
    2. lang_ta.properties
    I stored this two properties file in this package com.sap.example.language
    and this my code in DOInit()
    sessionLocale = WDClientUser.getCurrentUser().getLocale();
    resourceHandler = ResourceBundle.getBundle("com.sap.example.language.lang",sessionLocale);
    catch (WDUMException e)
    e.printStackTrace();
    wdContext.currentContextElement().setUsername_label(resourceHandler.getString("testview.username"));
    wdContext.currentContextElement().setPassword_label(resourceHandler.getString("testview.password"));
    How to solve this error?
    Guide me.
    Advance Thanks,
    Balaji

Maybe you are looking for

  • Looking for a wireless A4, edge to edge mac compatible printer

    Looking for a wireless A4, edge to edge mac compatible printer? can anyone reccomend something which really works well with Mac? I would get an A3 but I am guessing that A4 edge to edge would be better? I need edge to edge as I design A4 brochures an

  • How can i disable iTunes match on my new iPod?

    I want all my music locally stored on my new iPod touch. I want this so that I do not have to rely on wifi to have access to my music, and so that sonos will work with it.

  • How do I tell LR that my photos are now on a different disk?

    Hi all, I would think that this question might have been asked before, but couldn't find a solution that helped me out. I run out of space on my laptop and decided to move all my photos to an external drive and use that as an extension of my laptop t

  • Acrobat XI install question

    I bought an upgrade to Acrobat XI, but at installation it wants to see the Acrobat X version. My computer had crashed due to a virus, so X is no longer on the computer. How can I activate XI?

  • Is Metadata standard from camera maker to camera maker...

    No lens data nor even a field for lens data comes up in Metadata whether I show "all" or "EXIF". I have "unknown" lens for every photo in the database. How can you edit fields or at least see what information is in the file to be viewed if allowed? T