refund functions