cost added
cost final
merging