everythings cool -- need to recheck eva_costfun