update costs