change maxnormreg to only normalize input layer