fix adding cost