modify the cost layout