version with cost and DDR parameters