implemented multi feature cost function