update costs
bugfix