unreg cost function submitted