officially confirmed nn_cost function was the cause

added old nn cost function, renamed new one to kaupt