using nn in whole stack