change total to total_paid