nn with better output