update costs script