added empirical cost model