open the cost function up for external backprop learning