general clean up and cotinuation on cost equations